package site.psvm.phoneinfo.controller;

import org.springframework.stereotype.Controller;
import site.psvm.phoneinfo.common.util.Resp;

import java.util.List;

@Controller
public class BaseController {

    public static <T> Resp<T> packResp(String code, String msg, T data) {
        Resp<T> resp = new Resp<T>();
        resp.setCode(code);
        resp.setMsg(msg);
        resp.setData(data);
        return resp;
    }

}
